package com.example.demo.mapper;

import com.example.demo.domain.Menu;
import com.example.demo.domain.User;
import com.example.demo.domain.Vo.userListVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface UserMapper {

    public List<userListVo> selectUser(User user);

    User selectByUserId(Integer userId);

    public void insertUser(User user);

    public void  updateUserById(User user);

    public void  delUserById(@Param("id") Integer id);

    public User selectOneUser(User user);

    public List<Menu> getMenuByUserId(Integer userId);


}
